From 043521fecd43f5891ebed26609b6a4dd05f0626e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 29 Jul 2008 09:57:14 +0100 Subject: [PATCH] Fix ia64 build. Signed-off-by: Keir Fraser --- xen/common/page_alloc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 9ebdb20092..997b178d7c 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -557,10 +557,16 @@ void __init end_boot_allocator(void) } if ( !dma_bitsize && (num_online_nodes() > 1) ) + { +#ifdef CONFIG_X86 dma_bitsize = min_t(unsigned int, fls(NODE_DATA(0)->node_spanned_pages) - 1 + PAGE_SHIFT - 2, 32); +#else + dma_bitsize = 32; +#endif + } printk("Domain heap initialised"); if ( dma_bitsize ) -- 2.30.2